<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加博客文章</title>
</head>

<body>
<form action="/manage/add/" method="post" enctype="multipart/form-data">
    <label for="title">文章标题:</label>
    <input type="text" name="title"><br>
    <label for="intro">文章简介:</label>
    <input type="text" name="intro"> <br>
    <label for="intro">文章内容:</label>
    <textarea rows="10" cols="80" name="content"></textarea> <br>
    <label for="link">文章连接:</label>
    <input type="text" name="link"> <br>
    <label for="category_id">文章类别:</label>
    <select name="category_id">
        {% for category in article_category %}
            <option value="{{ category.id }}">{{ category.category_name }}</option>
        {% empty %}
            <option value="0">暂无数据</option>
        {% endfor %}
    </select> <br>
    <label for="file">文章图片:</label>
    <input type="file" name="file">
    <br>
    <input type="submit" value="提交">
</form>
</body>

</html>